part of '../repository.dart';

class AnalyticsContent extends Equatable {
  const AnalyticsContent({
    required this.firstLaunchLogged,
    required this.introStartLogged,
    required this.introWelcomePassLogged,
    required this.introFinishLogged,
  });

  final bool firstLaunchLogged;
  final bool introStartLogged;
  final bool introWelcomePassLogged;
  final bool introFinishLogged;

  @override
  List<Object?> get props {
    return [
      firstLaunchLogged,
      introStartLogged,
      introWelcomePassLogged,
      introFinishLogged,
    ];
  }

  AnalyticsContent copyWith({
    bool Function()? firstLaunchLogged,
    bool Function()? introStartLogged,
    bool Function()? introWelcomePassLogged,
    bool Function()? introFinishLogged,
  }) {
    return AnalyticsContent(
      firstLaunchLogged: firstLaunchLogged == null ? this.firstLaunchLogged : firstLaunchLogged(),
      introStartLogged:
          introStartLogged == null ? this.introStartLogged : introStartLogged(),
      introWelcomePassLogged:
          introWelcomePassLogged == null ? this.introWelcomePassLogged : introWelcomePassLogged(),
      introFinishLogged:
          introFinishLogged == null ? this.introFinishLogged : introFinishLogged(),
    );
  }
}
